package com.xijia;


/**
  * 方式破解单列（无法破解，直接抛出异常）
  * @author wangsong
  * @mail  1720696548@qq.com
  * @date  2020/9/5 0005 10:33
  * @version 1.0.0
  */
public class Test004 {
    public static void main(String[] args) throws ClassNotFoundException, IllegalAccessException, InstantiationException {

        Class<?> aClass = Class.forName("com.xijia.Singleton07");
        /**
         * 直接抛出，Exception in thread "main" java.lang.InstantiationException: com.xijia.Singleton07 异常
         */
        Object o = aClass.newInstance();
    }
}
